x86: Fix host S3.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 25 Jan 2008 13:26:38 +0000 (13:26 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 25 Jan 2008 13:26:38 +0000 (13:26 +0000)
commitbb09427c71cd621637565fb906c2114a2a6878cf
tree63897a647b35508f50e34f012e485bda57eef0ba
parent0283c624319baf72fb5ea9728b4cea91712eb1b2
x86: Fix host S3.

Time zone info just needs to be calculated in S3 suspend procedure.
However, time_suspend() is also called on AP. That wasteful
get_cmos_time() on AP may break __cpu_die() assumption since
get_cmos_time() can take up to one second. This fix just limits it to
running on the BSP.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
xen/arch/x86/time.c